package org.wsff.tools.api.gateway.demo.impl;

import org.springframework.stereotype.Service;
import org.wsff.tools.api.gateway.AbstractApiGateway;
import org.wsff.tools.api.gateway.demo.Apis;
import org.wsff.tools.api.gateway.demo.ExampleFacade;
import org.wsff.tools.api.gateway.demo.model.TestRequest;
import org.wsff.tools.api.gateway.demo.model.TestResponse;

/**
 * ExampleFacadeImpl
 * @author ryan
 * @version Id: ExampleFacadeImpl.java, v 0.1 2022-04-02 10:10 ryan Exp $$
 */
@Service
public class ExampleFacadeImpl extends AbstractApiGateway implements ExampleFacade {

    /**
     * 测试
     *
     * @param request 请求
     * @return 响应
     */
    @Override
    public TestResponse test(TestRequest request) {
        return execute(request, Apis.EXAMPLE_TEST, TestResponse.class);
    }
}
